package cn.itcast.feign.cliens;


import cn.itcast.feign.pojos.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * TODO
 *
 * @Author mr.wu
 * @Date 2025/1/3 11:54
 */
@FeignClient("user-service")
@RequestMapping("/user")
public interface UserClient {

    @GetMapping("/{id}")
    User queryById(@PathVariable("id") Long id);
}
